package com.weilan.ark3.common;

/**
 * Description:
 * date: 2023/3/7 14:52
 *
 *
 * @version: JDK 1.8
 */
public enum ResultCodeEnum {
    SUCCESS(200, "操作成功"),
    FAIL(201, "操作失败"),

    SERVICE_ERROR(202, "服务异常"),
    DATA_ERROR(203, "数据错误"),

    LOGIN_AUTH(204, "未登录"),
    PERMISSION(205, "没有权限"),

    USER_DOES_NOT_EXIST(206, "用户不存在"),
    PASSWORD_ERROR(207, "密码错误"),
    USER_DISABLED(208, "用户被禁用"),

    ARITHMETIC_EXCEPTION(20001,"算数异常"),
    NULLPOINT_EXCEPTION(20002,"空指针异常");


    private Integer code;

    private String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
